<table class="form_table" width="90%">
    <tbody>
	<tr>
	    <td class="form_field_info" valign="top" width="150"><b>Username</b><br>
		<small>Can be a maximum of 25 characters, spaces are allowed.</small></td>
	    <td class="form_field" valign="center" width="*"><%= text_field 'user', 'username', "size" => 25  %></td>
	</tr>
	<tr>
	    <td class="form_field_info" valign="top" width="150"><b>Email Address</b><br>
		<small>User's email address.</small></td>
	    <td class="form_field" valign="center" width="*"><%= text_field 'user', 'email', "size" => 25  %></td>
	</tr>
	<tr>
	    <td class="form_field_info" valign="top" width="150"><b>Password</b><br>
		<small>Must be between 4 and 25 characters long</small></td>
	    <td class="form_field" valign="center" width="*"><%= password_field 'user', 'password', "size" => 25  %></td>
	</tr>
	<tr>
	    <td class="form_field_info" valign="top" width="150"><b>Re-enter Password</b><br>
		<small>Re-enter your password for verification.</small></td>
	    <td class="form_field" valign="center" width="*"><%= password_field 'user', 'password_confirmation', "size" => 25  %></td>
	</tr>
	<tr>
	    <td class="form_field_info" valign="top" width="150"><b>User Level</b><br>
		<small>Determines access level of user.<br><br><b>Administator:</b> has full access.<br><b>Writer:</b> can write and edit own articles, and moderate comments.<br><b>Moderator:</b>Can approve, unapprove, and delete article comments.</small></td>
		<td class="form_field" valign="center" width="*"><%= select 'user', 'user_level', %w{['Administrator',1],['Writer',2],['Moderator',3]}%>
<select name="user_level" class="input" size=""><option value="Administrator" selected="selected">Administrator</option><option value="Writer">Writer</option><option value="Moderator">Moderator</option></select></td>
	</tr>
	<tr>
	    <td class="form_buttons" colspan="3"><input name="user_submit" class="button" value="Submit" type="submit"> &nbsp;<input class="button" value="Reset" type="reset"></td>
	</tr>
    </tbody>
</table>



<div style="padding: 5px; margin-top: 10px;">
<table class="form_table" width="90%">
    <tbody>
        <tr>
            <td class="form_group_header" colspan="2">&nbsp;<b>General</b></td>
        </tr>
        <tr>
            <td class="form_field_info" valign="top" width="150"><b>Category</b><br>
                <small>Category in which to list this article.</small></td>
            <td class="form_field" valign="center" width="*"><%= select("article", "category_id", Category.find(:all).collect {|p| [ p.name, p.id ] }, { :include_blank => true })%></td>
        </tr>
        <tr>
            <td class="form_field_info" valign="top" width="150"><b>Title</b><br>
                <small>The article title or question. Example: "How do I log in?", or "Logging into your account".</small></td>
            <td class="form_field" valign="center" width="*"><%= text_field 'article', 'title', "size" => 53  %></td>
        </tr>
        <tr>
            <td class="form_field_info" valign="top" width="150"><b>Content</b><br>
                <small>The content (body) of the article.</small>
            </td>
            <td class="form_field" valign="center" width="*"><%= text_area 'article', 'content', 'rows'=> 15, 'cols'=>60 %></td>
        </tr>
        <tr>
            <td class="form_field_info" valign="top" width="150"><b>Keywords</b><br>
                <small>Keywords (each separated by a single SPACE) that will be used to determine the article's relevance to searches. It is recommended that you list any abbreviations, synonyms, or other keywords related to the article that are not present in the article's content above.</small></td>
            <td class="form_field" valign="center" width="*"><%= text_field 'article', 'keywords', "size" => 53  %></td>
        </tr>
        <tr>
            <td class="form_group_header" colspan="2">&nbsp; <b>Options</b></td>
        </tr>
        <tr>
            <td class="form_field_info" valign="top" width="150"><b>Allow Comments?</b><br>
                <small>Whether or not to allow comments to be added to this article.</small></td>
            <td class="form_field" valign="center" width="*"><%= check_box 'article', 'allow_comment'  %></td>
        </tr>
        <tr>
            <td class="form_field_info" valign="top" width="150"><b>Publish?</b><br>
                <small>Whether to publish this article. Articles are only visible in the knowledge base if published.</small></td>
            <td class="form_field" valign="center" width="*"><%= check_box 'article', 'publish'  %></td>
        </tr>
        <tr>
            <td class="form_field_info" valign="top" width="150"><b>Featured?</b><br>
                <small>Featured articles automatically appear at the top of their category.</small></td>
            <td class="form_field" valign="center" width="*"><%= check_box 'article', 'featured'  %></td>
        </tr>
    </tbody>
</table>
</div>